package object;

/**
 * @Author: admin
 * @Description:
 * @Date: 2019/6/12 17:43
 */

public class Test {
    public static void main(String[] args) {
        int[] a={1,2,3,4,2,3,1};
        int length=a.length;


        int temp=0;
        for(int i=0;i<length;i++){
            temp=temp^a[i];
        }
        System.out.println(temp);
        System.out.println("=========");
        int index=a[0];

        for (int i=0; i<length-1;i++){
            for (int j=i+1;j<length;j++){
                if((a[i]^a[j]) ==0) System.out.println(a[i]);
            }
        }
        //System.out.println(index);
    }
}
